package com.cloud.mall.test.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-service")
public interface UserServiceClient {

    /**
     * 扣除用户金额
     */
    @GetMapping("/testuser/debit")
    void debit(@RequestParam("userId") String userId, @RequestParam("money") Integer money);
}
